package com.shoulder.boot.demo.service.impl;

import com.shoulder.boot.demo.mapper.Demo2Mapper;
import com.shoulder.boot.demo.service.Demo2Service;
import com.shoulder.boot.demo.vo.DemoVo;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 样例信息 服务实现类
 *
 * @author 596767880@qq.com
 * @since 2024-06-04 14:36:24
 */
@Service
@Transactional
@AllArgsConstructor
public class Demo2ServiceImpl  implements Demo2Service {
    private final Demo2Mapper demo2Mapper;

    @Override
    public List<DemoVo> demoTest() {
        return this.demo2Mapper.demoList();
    }

    @Override
    public List<DemoVo> demoTest2() {
        return demo2Mapper.demoList2();
    }
}